import request from '@/router/axios';

//设计输入点检表
//设计输入点检表列表
export const getCheckList = (params) => {
  return request({
    url: '/api/hg-public/protaskbook/list',
    method: 'get',
    params: {
      ...params,
    }
  })
}
//新增设计输入点检表
export const addCheck = (row) => {
  return request({
    url: '/api/hg-public/protaskbook/save',
    method: 'post',
    data: row
  })
}

//删除设计输入点检表
export const removeCheck = (ids) => {
  return request({
    url: '/api/hg-public/protaskbook/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

//更新设计输入点检表
export const updateCheck = (row) => {
  return request({
    url: '/api/hg-public/protaskbook/update',
    method: 'post',
    data: row
  })
}

//获取设计输入点检表详情
export const getCheckDetails = (id) => {
  return request({
    url: '/api/hg-public/protaskbook/detail',
    method: 'get',
    params: {
      id,
    }
  })
}
   
 